Optimal. Leaf size=43 \[ \sqrt {\frac {3}{2}} \sqrt {1-2 x} x \sqrt {1+2 x}+\frac {1}{2} \sqrt {\frac {3}{2}} \sin ^{-1}(2 x) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.00, antiderivative size = 43, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {38, 41, 222}
\begin {gather*} \frac {1}{2} \sqrt {\frac {3}{2}} \text {ArcSin}(2 x)+\sqrt {\frac {3}{2}} \sqrt {1-2 x} \sqrt {2 x+1} x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 38
Rule 41
Rule 222
Rubi steps
\begin {align*} \int \sqrt {3-6 x} \sqrt {2+4 x} \, dx &=\sqrt {\frac {3}{2}} \sqrt {1-2 x} x \sqrt {1+2 x}+3 \int \frac {1}{\sqrt {3-6 x} \sqrt {2+4 x}} \, dx\\ &=\sqrt {\frac {3}{2}} \sqrt {1-2 x} x \sqrt {1+2 x}+3 \int \frac {1}{\sqrt {6-24 x^2}} \, dx\\ &=\sqrt {\frac {3}{2}} \sqrt {1-2 x} x \sqrt {1+2 x}+\frac {1}{2} \sqrt {\frac {3}{2}} \sin ^{-1}(2 x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(108\) vs. \(2(43)=86\).
time = 0.66, size = 108, normalized size = 2.51 \begin {gather*} \frac {\sqrt {3-6 x} x \left (7+4 x^2-5 \sqrt {2+4 x}+x \left (16-6 \sqrt {2+4 x}\right )\right )}{-10+7 \sqrt {2+4 x}+2 x \left (-6+\sqrt {2+4 x}\right )}+\sqrt {6} \tan ^{-1}\left (\frac {-\sqrt {2}+\sqrt {1+2 x}}{\sqrt {1-2 x}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(69\) vs.
\(2(30)=60\).
time = 0.18, size = 70, normalized size = 1.63
method | result | size |
default | \(\frac {\left (2+4 x \right )^{\frac {3}{2}} \sqrt {3-6 x}}{8}-\frac {\sqrt {3-6 x}\, \sqrt {2+4 x}}{4}+\frac {\sqrt {\left (2+4 x \right ) \left (3-6 x \right )}\, \arcsin \left (2 x \right ) \sqrt {6}}{4 \sqrt {2+4 x}\, \sqrt {3-6 x}}\) | \(70\) |
risch | \(-\frac {x \left (2 x -1\right ) \left (1+2 x \right ) \sqrt {\left (2+4 x \right ) \left (3-6 x \right )}\, \sqrt {6}}{2 \sqrt {-\left (2 x -1\right ) \left (1+2 x \right )}\, \sqrt {3-6 x}\, \sqrt {2+4 x}}+\frac {\sqrt {\left (2+4 x \right ) \left (3-6 x \right )}\, \arcsin \left (2 x \right ) \sqrt {6}}{4 \sqrt {2+4 x}\, \sqrt {3-6 x}}\) | \(95\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 22, normalized size = 0.51 \begin {gather*} \frac {1}{2} \, \sqrt {-24 \, x^{2} + 6} x + \frac {1}{4} \, \sqrt {6} \arcsin \left (2 \, x\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 1.17, size = 52, normalized size = 1.21 \begin {gather*} \frac {1}{2} \, \sqrt {4 \, x + 2} x \sqrt {-6 \, x + 3} - \frac {1}{4} \, \sqrt {3} \sqrt {2} \arctan \left (\frac {\sqrt {3} \sqrt {2} \sqrt {4 \, x + 2} \sqrt {-6 \, x + 3}}{12 \, x}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 2.10, size = 187, normalized size = 4.35 \begin {gather*} \begin {cases} - \frac {\sqrt {6} i \operatorname {acosh}{\left (\sqrt {x + \frac {1}{2}} \right )}}{2} + \frac {\sqrt {6} i \left (x + \frac {1}{2}\right )^{\frac {5}{2}}}{\sqrt {x - \frac {1}{2}}} - \frac {3 \sqrt {6} i \left (x + \frac {1}{2}\right )^{\frac {3}{2}}}{2 \sqrt {x - \frac {1}{2}}} + \frac {\sqrt {6} i \sqrt {x + \frac {1}{2}}}{2 \sqrt {x - \frac {1}{2}}} & \text {for}\: \left |{x + \frac {1}{2}}\right | > 1 \\\frac {\sqrt {6} \operatorname {asin}{\left (\sqrt {x + \frac {1}{2}} \right )}}{2} - \frac {\sqrt {6} \left (x + \frac {1}{2}\right )^{\frac {5}{2}}}{\sqrt {\frac {1}{2} - x}} + \frac {3 \sqrt {6} \left (x + \frac {1}{2}\right )^{\frac {3}{2}}}{2 \sqrt {\frac {1}{2} - x}} - \frac {\sqrt {6} \sqrt {x + \frac {1}{2}}}{2 \sqrt {\frac {1}{2} - x}} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.30, size = 55, normalized size = 1.28 \begin {gather*} \frac {1}{2} \, \sqrt {3} \sqrt {2} {\left (\sqrt {2 \, x + 1} {\left (x - 1\right )} \sqrt {-2 \, x + 1} + \sqrt {2 \, x + 1} \sqrt {-2 \, x + 1} + \arcsin \left (\frac {1}{2} \, \sqrt {2} \sqrt {2 \, x + 1}\right )\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.26, size = 44, normalized size = 1.02 \begin {gather*} \frac {x\,\sqrt {4\,x+2}\,\sqrt {3-6\,x}}{2}-\frac {\sqrt {6}\,\ln \left (x-\frac {\sqrt {1-2\,x}\,\sqrt {2\,x+1}\,1{}\mathrm {i}}{2}\right )\,1{}\mathrm {i}}{4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________